473,420 Members | 1,574 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,420 software developers and data experts.

Creating a 3 State Rollover Button

Hi all,

Can anyone tell me what I need to do to create a 3 stage rolloever button
out of an asp.net image control.

I don't know too much about javascript or creating user controls. I'm really
hoping that someone can just tell me if there is an easy way to do it.

I normally use Dreamweaver for creating the rollover but thats just for normal
images, not server side controls. Is there any way I can use the code that
dreamweaver generates and somehow incorporate it into the <asp:imagebutton
..... > code?

One last thing: I really would like the button to be a 3 state button, so
that when you click on it it has that 'pressed' look as well as the standard
2 rollover states

Any advice would be greatfully received

Kindest Regards

tce

Nov 19 '05 #1
1 2467
the easy way is to use dreamweaver. just catch the button postback yourself
in the onload event. just be sure to assign a name and value to the image
button.

if (Request.Form["mybuttonname'] != null)
doButtonClick();

-- bruce (sqlwork.com)

"thechaosengine" <none> wrote in message
news:54********************@news.microsoft.com...
Hi all,

Can anyone tell me what I need to do to create a 3 stage rolloever button
out of an asp.net image control.

I don't know too much about javascript or creating user controls. I'm
really hoping that someone can just tell me if there is an easy way to do
it.
I normally use Dreamweaver for creating the rollover but thats just for
normal images, not server side controls. Is there any way I can use the
code that dreamweaver generates and somehow incorporate it into the
<asp:imagebutton .... > code?

One last thing: I really would like the button to be a 3 state button, so
that when you click on it it has that 'pressed' look as well as the
standard 2 rollover states

Any advice would be greatfully received

Kindest Regards

tce

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Brian Angliss | last post by:
I'm relatively new to scripting in JavaScript, so I'm not too surprised I'm having difficulty scripting up an animation effect for my personal site. What I'm trying to do is the following: When...
1
by: Oxnard | last post by:
Here's the script section: function change(color){ var el=event.srcElement if (el.tagName=="INPUT"&&el.type=="button") event.srcElement.style.backgroundColor=color } function jumpto2(url){...
47
by: Lauren Quantrell | last post by:
I have constructed the following code that simulates the common rollover effect when moving the mouse over a label (this example makes the label bold.) I'm wondering if anyone has come up with...
1
by: Mike P | last post by:
what is the syntax for adding a rollover button as an image button? I have saved the button as a .swf file and put it as the ImageUrl, but since it isn't an image, do I need to save it as an image...
0
by: Gepi Solo | last post by:
Hi, I'm a python newbie, coming from PHP & Perl. I'm developing client-server applications with a GUI. I'm trying to realize rollover buttons with images as background. I mean... I want to create a...
4
Marty1963
by: Marty1963 | last post by:
I was 'playing' with rollover buttons in CSS, using an image background. Works beautifully ... until you click on the button. The 'visited' state stops the rollover effect. Can someone, with more...
2
by: eholz1 | last post by:
Hello CSS and StyleSheet members, I have decided to move away from Dreamweaver javascript rollover buttons, in favor of a CSS type rollover button. (hope that is ok). I plan to use PHP to...
3
by: Oriane | last post by:
Hi there, I would like to handle a "rollover" <asp:Buttonin the code behind with C# with this kind of code: Button btn = Page.FindControl("Button" + numWidget) as Button; btn.Attributes =...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.